package com.emergency.common.util;

import java.io.*;
import java.math.BigDecimal;

public class Modifytxt {
    public static void main(String args[]) throws IOException {
//        BufferedReader in = new BufferedReader(new FileReader("D:/1.txt"));
//        PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter("D:/2.txt")));
//        String line;
//        while ((line = in.readLine()) != null) {
//            if (line.contains("aw")) {
//                out.println(line.replace("aw", "def111"));
//                //替换abc成def
//            } else {
//                out.println(line);
//            }
//        }
//        in.close();
//        out.close();
        BigDecimal db = new BigDecimal("1.9999E-04");
        BigDecimal db1 = new BigDecimal("1.0000");
        BigDecimal db2 = new BigDecimal("1.0000E+00");
        System.out.println(db1.compareTo(db));
        System.out.println(db1.compareTo(db2));
   }
}
